package org.neptune.web.controller;

import java.util.Map;

import org.neptune.service.service.CaptchaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lwl
 * @date 2019/9/12 10:06
 */
@RestController
@RequestMapping("/captcha")
public class CapthcaController {

	@Autowired
	private CaptchaService captchaService;

	/**
	 * @param @return
	 *            参数说明
	 * @return BaseRestResult 返回类型 @Description: 生成滑块拼图验证码
	 */
	@RequestMapping(value = "/getImageVerifyCode")
	public Map<String, Object> getImageVerifyCode() throws Exception {
		return captchaService.getImageVerifyCode();
	}
}
